From 94f779dfb18251455b1176fcba2d7f7d6fa9d1b4 Mon Sep 17 00:00:00 2001 From: "emellor@ewan" Date: Sun, 9 Oct 2005 12:16:23 +0100 Subject: [PATCH] Remove unnecessary extraction of ssidref from config inside restore -- this is now handled by the construct call, which restore has recently started using. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendDomainInfo.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index e8ed2c2995..3b73e572c9 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -219,17 +219,12 @@ def recreate(xeninfo): def restore(config): """Create a domain and a VM object to do a restore. - @param config: domain configuration + @param config: domain configuration """ log.debug("XendDomainInfo.restore(%s)", config) - try: - uuid = sxp.child_value(config, 'uuid') - ssidref = int(sxp.child_value(config, 'ssidref')) - except TypeError, exn: - raise VmError('Invalid ssidref in config: %s' % exn) - + uuid = sxp.child_value(config, 'uuid') vm = XendDomainInfo(uuid, parseConfig(config)) try: vm.construct() -- 2.30.2